/*
 * Copyright Notice ====================================================
 * This file contains proprietary information of Hewlett-Packard Co.
 * Copying or reproduction without prior written approval is prohibited.
 * Copyright (c) 2013 All rights reserved. =============================
 */

package com.hp.ecs.sonar;

import java.util.Arrays;
import java.util.List;

import org.sonar.api.Properties;
import org.sonar.api.Property;
import org.sonar.api.PropertyType;
import org.sonar.api.SonarPlugin;

@Properties({
				@Property(key = VpcPlugin.SMTP_HOST, name = "SMTP Host", defaultValue = "smtp.hp.com"),
				@Property(key = VpcPlugin.SMTP_PORT, name = "SMTP Port", defaultValue = "25", type = PropertyType.INTEGER),
				@Property(key = VpcPlugin.EMAIL_SENDER, name = "Email Sender", defaultValue = "hou-jun.fan@hp.com"),
				@Property(key = VpcPlugin.PASSWORD, name = "Password", type = PropertyType.PASSWORD, defaultValue = ""),
				@Property(key = VpcPlugin.FROM, name = "From", defaultValue = "NoReply@hp.com"),
				@Property(key = VpcPlugin.NEW_VIOLATION_DAYS, name = "New Violation Days", type = PropertyType.INTEGER, defaultValue = "4", description = "If a violation in recent the number days, it will be reported as a new violation "),
				@Property(key = VpcPlugin.SUPERVISOR, name = "Supervisor", defaultValue = "hou-jun.fan@hp.com", description = "All new violations will be send to supervisors.")})
public class VpcPlugin extends SonarPlugin {
	public static final String EMAIL_SENDER = "vpc.email.sender";

	public static final String SMTP_HOST = "vpc.smtp.host";

	public static final String SMTP_PORT = "vpc.smtp.port";

	public static final String PASSWORD = "vpc.smtp.pswd";

	public static final String FROM = "vpc.from";

	public static final String NEW_VIOLATION_DAYS = "vpc.vioaltion.days";

	public static final String SUPERVISOR = "vpc.supervisor";

	@SuppressWarnings("deprecation")
	public List getExtensions() {
		return Arrays.asList(Email2Owner.class);
	}
}
